//
//  UIFontExtension.swift
//  CocoProject
//
//  Created by Ruthless on 2023/8/17.
//

import UIKit

extension UIFont {
    /// W400
    static func regular(_ size: CGFloat)->UIFont {
        return UIFont.systemFont(ofSize: size, weight: .regular)
    }
    
    /// W500
    static func medium(_ size: CGFloat)->UIFont {
        return UIFont.systemFont(ofSize: size, weight: .medium)
    }
    
    /// W600
    static func semibold(_ size: CGFloat)->UIFont {
        return UIFont.systemFont(ofSize: size, weight: .semibold)
    }
    
    /// W700
    static func bold(_ size: CGFloat)->UIFont {
        return UIFont.systemFont(ofSize: size, weight: .bold)
    }
}
